﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;

using NCS.IConnect.ApplicationContexts;

using JM.JCY.BusinessFacade;
using JM.JCY.Common;
using JM.JCY.BusinessEntity;

namespace JM.JCY.Proxy
{
    public class LawCaseProxy : JCYProxyBase<ILawCase>, ILawCase
    {
        private ILawCase GetInstance()
        {
            return PolicyInjection.Create<LawCaseBF, ILawCase>();
        }

        public void UpdateSelfOperate(LawCaseDataSet.T_SelfOperateDataTable dt)
        {
            this.GetInstance().UpdateSelfOperate(dt);
        }

        public LawCaseDataSet.T_SelfOperateDataTable GetLawCaseSafety(int caseId, string userName)
        {
            return this.GetInstance().GetLawCaseSafety(caseId, userName);
        }

        public void UpdateLawCaseMaterial(LawCaseDataSet.T_LawCaseMaterialDataTable dt)
        {
            this.GetInstance().UpdateLawCaseMaterial(dt);
        }

        public LawCaseDataSet.T_LawCaseMaterialDataTable GetLawCaseMaterial(int caseId, string filler)
        {
            return this.GetInstance().GetLawCaseMaterial(caseId, filler);
        }
    }
}
